echo off
set COMMAND=%1
set PROFILE=%2
if "%1" == "" set COMMAND=REBUILD
if "%2" == "" set PROFILE=Release
if "%2" == "" "%DEVENVDIR%\devenv" .\openfixfast_vs8\openfixfast_vs8.sln /%COMMAND% Debug
IF %ERRORLEVEL% NEQ 0 goto ERROR
"%DEVENVDIR%\devenv" .\openfixfast_vs8\openfixfast_vs8.sln /%COMMAND% %PROFILE%
IF %ERRORLEVEL% NEQ 0 goto ERROR
popd
goto quit
:ERROR
SET ERRORLEVEL=1
:quit
SET ERRORLEVEL=0

